#!/bin/bash
host=127.0.0.1
port=3305
dbName=gulimall_ums
userName=root
pwd=root

goctl model mysql datasource -url="${userName}:${pwd}@tcp(${host}:${port})/${dbName}" -table=*  -dir=.